home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!usenet
- From: veenb@xs4all.nl (Barend ten Veen)
- Newsgroups: comp.lang.c++
- Subject: Problem with TIcon and win32 with BC4.53
- Date: Wed, 24 Jan 1996 13:15:02 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4e57j7$cs3@news.xs4all.nl>
- NNTP-Posting-Host: asd09-29.dial.xs4all.nl
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hello,
-
- I have a problem porting a 16 bit Windows application to 32 bit.
- In the 16 bit application i used the following code to create an
- TIcon.
-
- . . .
-
- HICON Hand;
- TIcon *AppIcon;
-
- char Commando[]="blabla.exe";
-
- AppIcon=0;
- Hand=0;
-
- // The following line check for an icon in the file
-
- Hand=ExtractIcon (0, (LPSTR)Commando, 0);
-
- if ((int)Hand != NULL && (int)Hand !=1)
- AppIcon=new TIcon (0, Commando, 0);
- . . .
-
- Later on in the program i use the AppIcon.
-
- This works fine white my 16 bits application.
-
- When i port this code to 32 bit the compiler and linker don't
- gives errors.
- But when i run it i get an Exception failure:
- GDI Exception.
-
- With the 32bit turbo debugger i get the following message:
- Stopped on execution throw of type TGdiBase::TXGdi.
- The exception occurs at the
- AppIcon=new TIcon (0, Commando, 0);
- line
-
- Can someone help me with this.
- I tryed several other ways for creating the TIcon but always get
- the same exception.
-
-
- Thanx in advance.
- Barend.
- veenb@xs4all.nl
-
-
-
-